import { axios } from '@/utils/request'

const api = {
  houseSourceList: '/frontDeskWeb/hoperators/getHouses',
  getXzxq: '/house/back/getXzxq',
  addHouses: '/frontDeskWeb/hoperators/addHouses'
}

export default api

/**
 * 房源列表
 */
export function houseSourceList (parameter) {
  return axios({
    url: api.houseSourceList,
    method: 'post',
    data: parameter
  })
}
/**
 * 获取杭州底下所有辖区
 */
export function getXzxq () {
  return axios({
    url: api.getXzxq,
    method: 'get'
  })
}
/**
 * 申报房源
 */
export function addHouses (parameter) {
  return axios({
    url: api.addHouses,
    method: 'post',
    data: parameter
  })
}
